import request from "@/utils/request.js";
import {API} from '@/config/app.js'
/**
 * 获取直播token
 */
export function getLiveToken(data) {
	return request.get(`${API}/client/live/audience/token`, data);
}
/**
 * 直播详情
 */
export function getLive(id) {
	return request.get(`${API}/client/live/room/${id}`);
}

/**
 * 获取Im信息
 */
export function getIm(data) {
	return request.get(`${API}/client/im/easemob/session`, data);
}

/**
 * 进入直播间
 */
export function inRoom(data) {
    return request.get(`${API}/client/live/room/user/enter`, data);
}
/**
 * 离开直播间
 */
export function outRoom(data) {
    return request.get(`${API}/client/live/room/user/leave`, data);
}


